<?php
define('IN_QY',true);
require("include/common.inc.php");

//闲置发货，用户地址api

$sql = "select * from tbl_taorder where id=".$_POST['codeid'];
$query=mysql_query($sql);
$row=mysql_fetch_array($query);

$sql1 = "select * from tbl_fh where infoid='".$row['orderid']."'";
$query1=mysql_query($sql1);
$row1=mysql_fetch_array($query1);

//
echo json_encode(array('error'=>1,'name'=>$row1['name'],'tel'=>$row1['telnum'],'address'=>$row1['address'])); 

//
